import { transformArrayIntoObject } from '../lib';

export const sortTitleRu: Record<string, string> = {
  mother: 'Мама',
  father: 'Папа',
  grandmother: 'Бабушка',
  grandfather: 'Дедушка',
  companyNamesitter: 'Няня',
};

export const sortTitleEnglish: Record<string, string> = Object.entries(sortTitleRu).reduce(
  (acc, [key, value]) => ({ ...acc, [value]: key }),
  {},
);

export const sorts = transformArrayIntoObject(['Мама', 'Папа', 'Бабушка', 'Дедушка', 'Няня']);
